inspector: Allow disposing the inspector
authorMatthias Clasen <mclasen@redhat.com>
Sat, 18 Jul 2020 03:15:42 +0000 (23:15 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 18 Jul 2020 03:15:42 +0000 (23:15 -0400)
We were hiding the inspector when the window
is closed, but that has the side-effect of
keeping references to application windows,
so we would keep them artificially alive,
which can have side-effects.

So, make the inspector go away when closed.

gtk/inspector/window.c

index 665e4c4c1844b624015f34214331211f538710d7..ff865a3b79b1e43919a02e8538086c697afbd222 100644 (file)
@@ -226,8 +226,6 @@ gtk_inspector_window_init (GtkInspectorWindow *iw)
                                iw,
                                NULL);
 
-  gtk_window_set_hide_on_close (GTK_WINDOW (iw), TRUE);
-
   gtk_window_group_add_window (gtk_window_group_new (), GTK_WINDOW (iw));
 
   extension_point = g_io_extension_point_lookup ("gtk-inspector-page");